package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

@TableName("cms_article_data")
public class ArticleData extends  Model<ArticleData> {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;


    @TableField(value = "article_id")
    private Integer articleId;

    private String content;


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return this.articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public Serializable pkVal(){
        return this.id;
    }

    @Override
    public String toString() {
        return "ArticleData{" +
                "id=" + id +
                ", articleId=" + articleId +
                ", content='" + content + '\'' +
                '}';
    }


}
